#include "List/simclist_impl.h"

struct file_arg {
	 char* ip;
	 int socket;
	 int port;
	 char* nome_file;
};

typedef struct file_arg file_arg_t;

struct update_arg {
	list_t *list;
	int socket;
	in_addr_t ip;
	int is_superpeer;
	in_addr_t superpeer_ip;
	int* is_alive;
};

typedef struct update_arg update_arg_t;

void send_file(void *arguments);
int request_file(void *arguments);
char* filename_filter(char* file_name);

void update_file(void *arguments);
void update_list(void *arguments);
